package com.webbei.shoppingCar.action;

import java.util.HashMap;
import java.util.Map;

import org.apache.struts2.ServletActionContext;

import com.webbei.shoppingCar.service.shoppingCarService;

public class getUserRelatedThirdPartry {
	private shoppingCarService scs;
	private Integer qq;
	private Integer wb;
	//...
	public String execute(){
		String username=(String) ServletActionContext.getContext().getSession().get("username");
		Map m1=new HashMap();
		m1.put("name", username);
		
		m1.put("type", "QQ");
		qq=scs.isHasRelatedThird(m1);
		m1.put("type", "WB");
		wb=scs.isHasRelatedThird(m1);
		return "success";
	}
	public Integer getQq() {
		return qq;
	}
	public void setQq(Integer qq) {
		this.qq = qq;
	}
	public Integer getWb() {
		return wb;
	}
	public void setWb(Integer wb) {
		this.wb = wb;
	}
	public void setScs(shoppingCarService scs) {
		this.scs = scs;
	}
}
